package com.xianggu.protocol;

import java.io.Serializable;

/**
 * @author chengjy
 * @date 2025/3/8
 */
public class Invocation implements Serializable {

    private String interfaceName;
    private String methodName;
    private Class<?>[] parameterTypes;
    private Object[] args;

    public Class getaClass() {
        return aClass;
    }

    private String version;
    private Class aClass;


    public Invocation(String interfaceName, String methodName, Class<?>[] parameterTypes, Object[] args ,Class aClass , String version) {
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.parameterTypes = parameterTypes;
        this.args = args;
        this.version = version;
        this.aClass = aClass;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public Class<?>[] getParameterTypes() {
        return parameterTypes;
    }

    public Object[] getArgs() {
        return args;
    }

    public String getVersion() {
        return version;
    }


}
